package cn.zzuisa.deutsch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author frank
 * @since 2019-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member")
public class Member extends Model<Member> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 昵称
     */
    private String name;

    private Integer status;
    /**
     * 头像
     */
    private String headImg;

    private LocalDateTime createTime;

    /**
     * 性别
     */
    private String sex;

    /**
     * 手机号
     */
    private String phone;

    /**
     * openId
     */
    private String openId;

    /**
     * 个人签名
     */
    private String address;

    /**
     * 地址
     */
    private LocalDateTime lastLogin;
    /**
     * 个人介绍
     */
    private String introduce;
    /**
     * 等级
     */
    private int level;
    /**
     * 经验
     */
    private int experience;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
